#ifndef __PWM_H__
#define __PWM_H__

#include <STM32F10x.h>

void Pwm_Init(int per, int pre);

void Set_Duty(int Duty);

#define buzzer_init() Pwm_Init(200, 720) 
#define buzzer_on() Set_Duty(100)
#define buzzer_off() Set_Duty(0)

#endif

